feat: upgrade to Astro 7#16
Merged
Merged
Conversation
Bump astro ^6 → ^7, @astrojs/react ^5 → ^6 (required for v7), and @tailwindcss/vite + tailwindcss → ^4.3.1 for the Vite 8 that Astro 7 pulls in. Bump @astrojs/check → ^0.9.9. Astro 7's default Markdown processor is Sätteri (Rust); we keep the unified (remark/rehype) pipeline our remark plugins depend on, so make its deps explicit since astro no longer bundles them: add @astrojs/markdown-remark + unist-util-visit (build) and unified/remark-parse/remark-rehype/rehype-stringify (tests). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Astro 7 changes the compressHTML default from `true` to `'jsx'`, which collapses whitespace between inline elements using JSX rules. Pin it to `true` to preserve the exact v6 HTML/whitespace output — this blog keeps its established look. Also refresh the markdown comment to reflect the Sätteri-vs-unified opt-in. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Astro 6 → 7, and rewrite the remark-plugin note: Sätteri is the new default, we opt back into the unified pipeline via the now-explicit @astrojs/markdown-remark, and compressHTML: true is pinned. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Document the workflow conventions in AGENTS.md so future agents follow them: Conventional Commits, small/focused commits, verify before committing, and branch-off-main + PR (Cloudflare deploys from main). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
posts | 465538a | Commit Preview URL Branch Preview URL |
Jun 24 2026, 09:19 AM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrades the blog from Astro 6 to Astro 7.0.2.
The headline Astro 7 breaking change is the Markdown pipeline moving to the Rust-based Sätteri processor. This blog already used
markdown.processor: unified()(since 6.4) and its two custom remark plugins (video embeds, image captions) are unified plugins, so the migration was mostly mechanical: make the unified-pipeline deps explicit, sinceastrono longer bundles them.Changes
build(deps)—astro^6→^7,@astrojs/react^5→^6(required for v7),@tailwindcss/vite+tailwindcss→^4.3.1(Vite 8 compat),@astrojs/check→^0.9.9. Added@astrojs/markdown-remark,unist-util-visit,unified,remark-parse,remark-rehype,rehype-stringifyas explicit deps.chore(config)— pinnedcompressHTML: true. Astro 7's new default is'jsx'(collapses inter-element whitespace via JSX rules); pinningtruepreserves byte-identical v6 rendering, in line with the "don't redesign" mandate.docs— updated AGENTS.md for the Astro 7 markdown pipeline, and added commit & PR conventions to the agent rules (Conventional Commits, small focused commits, verify-before-commit, branch-off-main + PR).Not applicable (confirmed)
No
src/fetch.ts, noastro:transitions/@astrojs/db, no experimental flags, no MDX — none of the other v7 breaking changes touch this repo.Verification
astro check: 0 errors (56 files)npm run build: 130 pages; captions, video embeds, and Shiki output verified correct indistnpm run check:links: no broken links (2822 refs)astro preview(v7.0.2):/, a post,/rss.xml,/sitemap-index.xml,/llms.txt, a tag page all return 200Reference: followed the same approach as the astro-modular Astro 7 migration.
🤖 Generated with Claude Code